﻿using Nest;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Log.Api.LogModels
{
    [ElasticsearchType(IdProperty = "Id")]
    public class LogModelBase
    {
        [Keyword]
        public string Id { get; set; } = Guid.NewGuid().ToString();

        [Keyword]
        public string ApiKey { get; set; }

        public string ServiceCode { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CT { get; set; } = DateTime.Now;
    }
}
